package cn.wolfcode.shop.cloud.util;


import cn.wolfcode.shop.key.KeyPrefix;

/**
 * Created by Administrator on 2020/4/27 0027.
 */
public class SecKillKeyPrefix implements KeyPrefix {

    private int expireTime;
    private String prefix;

    public SecKillKeyPrefix(int expireTime, String prefix) {
        this.expireTime = expireTime;
        this.prefix = prefix;
    }


    @Override
    public int getExpireTime() {
        return this.expireTime;
    }

    @Override
    public String getKeyPrefix() {
        return this.prefix;
    }

    public static final SecKillKeyPrefix SECKILL_STOCK = new SecKillKeyPrefix(0, "seckill_stock:");
    public static final SecKillKeyPrefix SECKILL_ORDER = new SecKillKeyPrefix(0,"seckill_order:");

    public static final SecKillKeyPrefix SECKILL_GOOD = new SecKillKeyPrefix(0,"seckill_good:");
    public static final SecKillKeyPrefix SECKILL_VERIFYCODE = new SecKillKeyPrefix(0,"seckill_verifycode:");
    public static final SecKillKeyPrefix SECKILL_PATH = new SecKillKeyPrefix(0,"seckill_path:");




}
